<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>恒星同学 - 只要有了安排，等待便不是煎熬，而是期待。</title><meta name="author" content="hengxingstu"><meta name="copyright" content="hengxingstu"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta property="og:type" content="website">
<meta property="og:title" content="恒星同学">
<meta property="og:url" content="https://hengxingstu.gitee.io/page/2/index.html">
<meta property="og:site_name" content="恒星同学">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://wallpapercave.com/uwp/uwp2365506.jpeg">
<meta property="article:author" content="hengxingstu">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://wallpapercave.com/uwp/uwp2365506.jpeg"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://hengxingstu.gitee.io/page/2/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"prismjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: '恒星同学',
  isPost: false,
  isHome: true,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2023-02-21 20:34:45'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 6.1.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://wallpapercave.com/uwp/uwp2365506.jpeg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data is-center"><div class="data-item"><a href="/archives/"><div class="headline">文章</div><div class="length-num">36</div></a></div><div class="data-item"><a href="/tags/"><div class="headline">标签</div><div class="length-num">23</div></a></div><div class="data-item"><a href="/categories/"><div class="headline">分类</div><div class="length-num">8</div></a></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 娱乐</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/gallery/"><i class="fa-fw fas fa-images"></i><span> 图库</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/contact/"><i class="fa-fw fa-fw fas fa-comment-dots"></i><span> 留言板</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background-image: url('https://wallpapercave.com/wp/wp4327161.jpg')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">恒星同学</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 娱乐</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/gallery/"><i class="fa-fw fas fa-images"></i><span> 图库</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/contact/"><i class="fa-fw fa-fw fas fa-comment-dots"></i><span> 留言板</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">恒星同学</h1><div id="site-subtitle"><span id="subtitle"></span></div><div id="site_social_icons"><a class="social-icon" href="https://github.com/hengxingstu" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="mailto:hengxingstu@gmail.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item"><div class="post_cover left"><a href="/2023/01/26/code/JavaException/" title="Java的异常处理"><img class="post_bg" src="https://s2.loli.net/2023/01/26/TG4D6pZl3wYQ8by.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Java的异常处理"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/01/26/code/JavaException/" title="Java的异常处理">Java的异常处理</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-26T07:13:00.000Z" title="发表于 2023-01-26 15:13:00">2023-01-26</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Java/">Java</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2023/01/26/code/JavaException/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">
异常异常就是程序非正常运行时的报错，不正常就是异常。
异常分类通常分为两类：
Error：错误。通常是Java虚拟机无法解决的严重问题。如：JVM系统内部错误、资源耗尽等严重情况。比如：StackOverflowError和OOM--&gt;OutOfMemory。
一般不编写针对性的代码进行处理。
Exception：其它因编程错误或偶然的外在因素导致的一般性问题， 可以使用针对性的代码进行处理。  
异常体系结构父类为Throwable。
图中蓝色的是非受检异常（unchecked）或称运行时异常。
红色是受检异常（checked）或称编译时异常，会在编译时进行报错。


常见异常Exception编译时异常(checked)
IOException
FileNotFoundException


ClassNotFoundException

运行时异常(unchecked,RuntimeException)
NullPointerException–&gt;空指针异常

ArrayIndexOutOfBoundsException–&gt;数组越界异常

ClassCastE ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2023/01/20/webConstruct/live2d/" title="Hexo博客添加Live2D看板娘"><img class="post_bg" src="https://s2.loli.net/2023/01/20/UWuAGm1TNPIOw8q.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Hexo博客添加Live2D看板娘"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/01/20/webConstruct/live2d/" title="Hexo博客添加Live2D看板娘">Hexo博客添加Live2D看板娘</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-20T12:07:00.000Z" title="发表于 2023-01-20 20:07:00">2023-01-20</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/web/">web</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2023/01/20/webConstruct/live2d/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">看板娘预览看下面这个网址
Hexo添加Live2D看板娘+模型预览
安装安装过程看这个网址
hexo 添加live2d看板动画
优化Hexo美化|站宠？看板娘？live2d配置（附魔改插件和新模型）
</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/01/19/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A15/" title="Java的面向对象笔记（下）"><img class="post_bg" src="https://s2.loli.net/2023/01/19/dEVGMa2iJgZwApv.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Java的面向对象笔记（下）"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/01/19/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A15/" title="Java的面向对象笔记（下）">Java的面向对象笔记（下）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-19T06:46:00.000Z" title="发表于 2023-01-19 14:46:00">2023-01-19</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Java/">Java</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2023/01/19/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A15/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">
static关键字static 静态
什么是静态主要意义是在于创建独立于具体对象的域变量或者方法。以致于即使没有创建对象，也能使用属性和调用方法！
static关键字还有一个比较关键的作用就是用来形成静态代码块以优化程序性能。static块可以置于类中的任何地方，类中可以有多个static块。在类初次被加载的时候，会按照static块的顺序来执行每个static块，并且只会执行一次。
怎么使用staticstatic可以用来修饰：属性、方法、代码块、内部类
使用static修饰属性：静态变量（或类变量）

属性，按是否使用static修饰，又分为：静态属性 vs 非静态属性(实例变量)

实例变量：我们创建了类的多个对象，每个对象都独立的拥有一套类中的非静态属性。当修改其中一个对象中的非静态属性时，不会导致其他对象中同样的属性值的修改。

静态变量：我们创建了类的多个对象，多个对象共享同一个静态变量。当通过某一个对象修改静态变量时，会导致其他对象调用此静态变量时，是修改过了的。




静态变量说明
静态变量随着类的加载而加载。可以通过”类.静态变量”的方式进行调用

静态变量的加载 ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2023/01/15/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A14/" title="Java的面向对象笔记（中）(二)"><img class="post_bg" src="https://img.btstu.cn/api/images/5b0e889655427.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Java的面向对象笔记（中）(二)"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/01/15/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A14/" title="Java的面向对象笔记（中）(二)">Java的面向对象笔记（中）(二)</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-15T15:42:00.000Z" title="发表于 2023-01-15 23:42:00">2023-01-15</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Java/">Java</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2023/01/15/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A14/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">继承再续super关键字理解super理解为：父类的
super可以用来调用：属性super.attr、方法super.method()、构造器super()
应用注意点
我们可以在子类的方法或构造器中。通过使用super.attr或super.method()的方式，显式的调用父类中声明的属性或方法。但是，通常情况下，我们习惯省略super.
特殊情况：当子类和父类中定义了同名的属性时，我们要想在子类中调用父类中声明的属性，则必须显式的使用super.attr的方式，表明调用的是父类中声明的属性。
特殊情况：当子类重写了父类中的方法以后，我们想在子类的方法中调用父类中被重写的方法时，则必须显式的使用super.method()的方式，表明调用的是父类中被重写的方法。

父类构造器
我们可以在子类的构造器中显式的使用”super(形参列表)”的方式，调用父类中声明的指定的构造器super(形参列表)的使用，必须声明在子类构造器的首行！
我们在类的构造器中，针对于this(形参列表)或super(形参列表)只能二选一，不能同时出现⭐
在构造器的首行，没有显式的声明this(形参列表)或s ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/01/15/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A13/" title="Java的面向对象笔记（中）"><img class="post_bg" src="https://imgapi.cn/bing.php?rand=true" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Java的面向对象笔记（中）"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/01/15/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A13/" title="Java的面向对象笔记（中）">Java的面向对象笔记（中）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-14T16:22:00.000Z" title="发表于 2023-01-15 00:22:00">2023-01-15</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Java/">Java</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2023/01/15/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A13/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">继承性基础哲学三问什么是继承性银行卡有很多种，有借记卡、信用卡、亲情卡、工资卡等等，他们各有不同，但都具有相同的银行卡特征，即余额、卡号等共有的属性，如果每定义一个类都需要写一次，那就太麻烦了。有没有什么办法抽取出相同特征呢？
利用继承性，我们可以在银行卡类中定义共同特征，然后将单独的特征再定义。

在Java 中，继承的关键字用的是“extends”，即子类不是父类的子集，而是对父类的“扩展”

为什么需要继承性（优点）
减少代码冗余，提高代码复用性

便于功能拓展
如果现在所有的银行卡都需要添加实名登记功能，那么我们就可以在父类中直接写，通过继承，其他子类自然可以获得这个功能，不必每个都写一遍。

为多态性提供了基础


怎么使用extends关键字
class A extends B&#123;&#125;

A: 子类、派生类、subclass

B: 父类、超类、基类、superclass


例如现在要让Student类继承Person类
public class Student extends Person&#123;&#125;
调用时可以直接当作自己的来用
Stude ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2023/01/10/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A1/" title="Java的面向对象笔记（上）"><img class="post_bg" src="https://s2.loli.net/2023/02/08/jWNelFA4c7BGkTw.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Java的面向对象笔记（上）"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/01/10/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A1/" title="Java的面向对象笔记（上）">Java的面向对象笔记（上）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-10T02:41:00.000Z" title="发表于 2023-01-10 10:41:00">2023-01-10</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Java/">Java</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2023/01/10/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A1/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">
开篇主线
类及类的成员
属性、方法、构造器；
代码块，内部类

面向对象三大特征
继承、封装、多态

其他关键字
this,super,static,final,abstract,interface等


面向对象的两个要素一、是什么
类：对一类事物的描述，是抽象的、概念上的定义
对象：是实际存在的该类事物的每个个体，因而也称为实例(instance)

面向对象程序设计的重点是类的设计

设计类，就是设计类的成员。(这个设计是动词)


二、类和对象的使用（面向对象思想落地的实现）：

创建类，设计类的成员
创建类的对象
通过对象.属性或对象.方法调用对象的结构

三、如果创建了一个类的多个对象，则每个对象都独立的拥有一套类的属性。（非static的）
意味着：如果我们修改一个对象的属性a，则不影响另外一个对象属性a的值。
对象的内存解析
实践public class PersonTest &#123;
	public static void main(String[] args) &#123;
		//2. 创建Person类的对象
		Person p1 = new Perso ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/01/10/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A12/" title="Java的面向对象笔记（上）（二）"><img class="post_bg" src="https://static.likepoems.com/2020/09/mc/n1PFnct15IR3FV9crUqQ.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Java的面向对象笔记（上）（二）"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/01/10/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A12/" title="Java的面向对象笔记（上）（二）">Java的面向对象笔记（上）（二）</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-10T02:41:00.000Z" title="发表于 2023-01-10 10:41:00">2023-01-10</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Java/">Java</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2023/01/10/code/Java%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A12/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">再谈方法Overload 重载
定义：在同一个类中，允许存在一个以上的同名方法，只要它们的参数个数或者参数类型不同即可。


两同一不同

同一个类、相同方法名
参数列表不同：参数个数不同，参数类型不同，参数顺序不同



判断是否是重载：


跟方法的权限修饰符、返回值类型、形参变量名、方法体都没有关系！


在通过对象调用方法时，如何确定某一个指定的方法：


方法名 —&gt; 参数列表

练习编写程序，定义三个重载方法并调用。方法名为mOL。

三个方法分别接收一个int参数、两个int参数、一个字符串参数。

  分别执行平方运算并输出结果，相乘并输出结果，输出字符串信息。
  在主类的main ()方法中分别用参数区别调用三个方法。2. 定义三个重载方法max()，    第一个方法求两个int值中的最大值，    第二个方法求两个double值中的最大值，    第三个方法求三个double值中的最大值，    并分别调用三个方法。
public class OverloadExer &#123;
	public static void main(String[] arg ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2023/01/08/code/Java%E6%95%B0%E7%BB%84/" title="数组的复制、反转、查找、排序"><img class="post_bg" src="https://api.vvhan.com/api/view" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="数组的复制、反转、查找、排序"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/01/08/code/Java%E6%95%B0%E7%BB%84/" title="数组的复制、反转、查找、排序">数组的复制、反转、查找、排序</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-08T08:00:00.000Z" title="发表于 2023-01-08 16:00:00">2023-01-08</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Java/">Java</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2023/01/08/code/Java%E6%95%B0%E7%BB%84/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">数组的复制、反转、查找、排序复制其中最关键的一点是搞清楚为什么数组复制和基本数据类型复制不同，是什么导致了这样的不同？先来看例子
package com.atguigu.java;

public class ArrayTest3 &#123;
    public static void main(String[] args) &#123;
        //新建arr数组并输出
        int[] arr = new int[]&#123;60,56,78,24,90,63&#125;;
        System.out.println("arr数组：");
        for(int i = 0;i&lt;arr.length;i++)&#123;
            System.out.print(arr[i] + " ");
        &#125;
        System.out.println();
        //虚假的数组复制
        int[] arr1;
        arr1 = arr;
        
    ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/01/01/code/Springboot%E7%AC%94%E8%AE%B0/" title="SpringBoot2学习笔记"><img class="post_bg" src="https://api.vvhan.com/api/view" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="SpringBoot2学习笔记"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/01/01/code/Springboot%E7%AC%94%E8%AE%B0/" title="SpringBoot2学习笔记">SpringBoot2学习笔记</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2023-01-01T13:00:00.000Z" title="发表于 2023-01-01 21:00:00">2023-01-01</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/SpringBoot/">SpringBoot</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2023/01/01/code/Springboot%E7%AC%94%E8%AE%B0/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">SpringBoot自动配置官方提供的自定义方式
If you want to keep those Spring Boot MVC customizations and make more MVC customizations (interceptors, formatters, view controllers, and other features), you can add your own @Configuration class of type WebMvcConfigurer but without @EnableWebMvc.


不用@EnableWebMvc注解。使用 @Configuration + WebMvcConfigurer 自定义规则


If you want to provide custom instances of RequestMappingHandlerMapping, RequestMappingHandlerAdapter, or ExceptionHandlerExceptionResolver, and still keep the  ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2022/09/19/code/Angular%E5%AD%A6%E4%B9%A0%E8%AE%B0%E5%BD%95/" title="angular学习记录"><img class="post_bg" src="https://w.wallhaven.cc/full/6o/wallhaven-6o6orw.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="angular学习记录"></a></div><div class="recent-post-info"><a class="article-title" href="/2022/09/19/code/Angular%E5%AD%A6%E4%B9%A0%E8%AE%B0%E5%BD%95/" title="angular学习记录">angular学习记录</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-09-19T02:39:00.000Z" title="发表于 2022-09-19 10:39:00">2022-09-19</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Markdown/">Markdown</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2022/09/19/code/Angular%E5%AD%A6%E4%B9%A0%E8%AE%B0%E5%BD%95/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">angular学习记录数据绑定

[]表示绑定属性，()表示绑定事件，[()]表示双向绑定

服务-持久化要点
组件之间无法相互调用，如果想要相互调用的话，需要使用服务，服务是公共化的【具体组件间的关系请看后面父子组件的交互】

组件可以调用服务的方法，但服务不能调用组件的方法，并且组件之间不能相互调用

服务之间可以相互调用



创建服务的命令
&gt; ng g service services/storage
引入服务组件
在app.module.ts中
//引入并配置服务
import &#123; StorageService &#125; from "./services/storage.service";

//providers里添加
 providers: [StorageService],

接下来我们就可以在storage.service.ts中写一些方法
 
&#x3D;&#x3D;服务定义好了，谁要用，谁引入，然后调用&#x3D;&#x3D;
//例如，我在search组件中引入

import &#123; StorageService &#125; fr ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2022/09/17/DataStructure/Graph/" title="图的邻接存储方式对比"><img class="post_bg" src="https://wallpapercave.com/uwp/uwp2365506.jpeg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="图的邻接存储方式对比"></a></div><div class="recent-post-info"><a class="article-title" href="/2022/09/17/DataStructure/Graph/" title="图的邻接存储方式对比">图的邻接存储方式对比</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-09-17T01:41:00.000Z" title="发表于 2022-09-17 09:41:00">2022-09-17</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Learn/">Learn</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2022/09/17/DataStructure/Graph/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">对比



邻接表
邻接矩阵



空间复杂度
无向图O(|V|+|E|)，有向图O(|V|+|E|)
O(|V|^2)


适用于
稀疏图
稠密图


表示方式
不唯一
唯一


计算度、出度、入度
计算有向图的度、入度不方便。其余很方便
必须遍历对应行或列


找相邻的边
找有向图的入度不方便，其余很方便
必须遍历对应行或列


</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2022/08/01/Math/%E9%AB%98%E6%95%B0%E5%85%AC%E5%BC%8F/" title="高等数学公式速记"><img class="post_bg" src="https://w.wallhaven.cc/full/6o/wallhaven-6o8ekw.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="高等数学公式速记"></a></div><div class="recent-post-info"><a class="article-title" href="/2022/08/01/Math/%E9%AB%98%E6%95%B0%E5%85%AC%E5%BC%8F/" title="高等数学公式速记">高等数学公式速记</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2022-08-01T12:34:00.000Z" title="发表于 2022-08-01 20:34:00">2022-08-01</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Learn/">Learn</a></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-comments"></i><a class="twikoo-count" href="/2022/08/01/Math/%E9%AB%98%E6%95%B0%E5%85%AC%E5%BC%8F/#post-comment"></a><span class="article-meta-label"> 条评论</span></span></div><div class="content">泰勒公式
积分与复合函数求导公式
求导
</div></div></div><nav id="pagination"><div class="pagination"><a class="extend prev" rel="prev" href="/"><i class="fas fa-chevron-left fa-fw"></i></a><a class="page-number" href="/">1</a><span class="page-number current">2</span><a class="page-number" href="/page/3/#content-inner">3</a><a class="extend next" rel="next" href="/page/3/#content-inner"><i class="fas fa-chevron-right fa-fw"></i></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="https://wallpapercave.com/uwp/uwp2365506.jpeg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">hengxingstu</div><div class="author-info__description"></div></div><div class="card-info-data is-center"><div class="card-info-data-item"><a href="/archives/"><div class="headline">文章</div><div class="length-num">36</div></a></div><div class="card-info-data-item"><a href="/tags/"><div class="headline">标签</div><div class="length-num">23</div></a></div><div class="card-info-data-item"><a href="/categories/"><div class="headline">分类</div><div class="length-num">8</div></a></div></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/hengxingstu"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/hengxingstu" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="mailto:hengxingstu@gmail.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">这是我的博客，欢迎和我联系，交流是最好的老师</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2023/02/21/code/springMVC%E6%96%87%E6%A1%A3/" title="Spring参考文档"><img src="https://s2.loli.net/2023/02/21/vdVhPU5RITfrXg4.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Spring参考文档"/></a><div class="content"><a class="title" href="/2023/02/21/code/springMVC%E6%96%87%E6%A1%A3/" title="Spring参考文档">Spring参考文档</a><time datetime="2023-02-21T12:26:00.000Z" title="发表于 2023-02-21 20:26:00">2023-02-21</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/02/16/code/SpringMVC%E7%AC%94%E8%AE%B0/" title="SpringMVC学习笔记"><img src="https://s2.loli.net/2023/02/16/N8E1LGTUnYVdmPk.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="SpringMVC学习笔记"/></a><div class="content"><a class="title" href="/2023/02/16/code/SpringMVC%E7%AC%94%E8%AE%B0/" title="SpringMVC学习笔记">SpringMVC学习笔记</a><time datetime="2023-02-16T09:06:00.000Z" title="发表于 2023-02-16 17:06:00">2023-02-16</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/02/16/code/Spring%E4%BA%8B%E5%8A%A1/" title="Spring学习笔记"><img src="https://s2.loli.net/2023/02/16/N8E1LGTUnYVdmPk.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Spring学习笔记"/></a><div class="content"><a class="title" href="/2023/02/16/code/Spring%E4%BA%8B%E5%8A%A1/" title="Spring学习笔记">Spring学习笔记</a><time datetime="2023-02-16T09:06:00.000Z" title="发表于 2023-02-16 17:06:00">2023-02-16</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/02/15/code/SpringAop%E7%AC%94%E8%AE%B0/" title="SpringAOP笔记"><img src="https://s2.loli.net/2023/02/08/jWNelFA4c7BGkTw.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="SpringAOP笔记"/></a><div class="content"><a class="title" href="/2023/02/15/code/SpringAop%E7%AC%94%E8%AE%B0/" title="SpringAOP笔记">SpringAOP笔记</a><time datetime="2023-02-15T13:00:00.000Z" title="发表于 2023-02-15 21:00:00">2023-02-15</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/02/12/code/Spring%E7%AC%94%E8%AE%B0/" title="Spring学习笔记"><img src="https://s2.loli.net/2023/02/12/ukqiYOMfcU4WwCJ.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Spring学习笔记"/></a><div class="content"><a class="title" href="/2023/02/12/code/Spring%E7%AC%94%E8%AE%B0/" title="Spring学习笔记">Spring学习笔记</a><time datetime="2023-02-12T05:58:00.000Z" title="发表于 2023-02-12 13:58:00">2023-02-12</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
            <i class="fas fa-folder-open"></i>
            <span>分类</span>
            
            </div>
            <ul class="card-category-list" id="aside-cat-list">
            <li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Java/"><span class="card-category-list-name">Java</span><span class="card-category-list-count">13</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Learn/"><span class="card-category-list-name">Learn</span><span class="card-category-list-count">6</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Markdown/"><span class="card-category-list-name">Markdown</span><span class="card-category-list-count">6</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Spring/"><span class="card-category-list-name">Spring</span><span class="card-category-list-count">4</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/SpringBoot/"><span class="card-category-list-name">SpringBoot</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/SpringMVC/"><span class="card-category-list-name">SpringMVC</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/web/"><span class="card-category-list-name">web</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E7%BC%96%E7%A8%8B%E6%96%87%E6%A1%A3/"><span class="card-category-list-name">编程文档</span><span class="card-category-list-count">1</span></a></li>
            </ul></div><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/tags/Angular/" style="font-size: 1.1em; color: #999">Angular</a> <a href="/tags/DataStructure/" style="font-size: 1.1em; color: #999">DataStructure</a> <a href="/tags/Java/" style="font-size: 1.5em; color: #99a9bf">Java</a> <a href="/tags/Java-JPA/" style="font-size: 1.1em; color: #999">Java JPA</a> <a href="/tags/Servlet/" style="font-size: 1.1em; color: #999">Servlet</a> <a href="/tags/Spring/" style="font-size: 1.34em; color: #99a3b0">Spring</a> <a href="/tags/SpringBoot/" style="font-size: 1.18em; color: #999ca1">SpringBoot</a> <a href="/tags/SpringMVC/" style="font-size: 1.1em; color: #999">SpringMVC</a> <a href="/tags/TypeScript/" style="font-size: 1.1em; color: #999">TypeScript</a> <a href="/tags/angular/" style="font-size: 1.1em; color: #999">angular</a> <a href="/tags/web/" style="font-size: 1.1em; color: #999">web</a> <a href="/tags/%E5%85%AC%E5%BC%8F/" style="font-size: 1.26em; color: #999fa8">公式</a> <a href="/tags/%E5%8D%95%E8%AF%8D/" style="font-size: 1.1em; color: #999">单词</a> <a href="/tags/%E5%90%83%E5%96%9D%E7%8E%A9%E4%B9%90/" style="font-size: 1.1em; color: #999">吃喝玩乐</a> <a href="/tags/%E5%A4%A7%E6%95%B0%E6%8D%AE/" style="font-size: 1.18em; color: #999ca1">大数据</a> <a href="/tags/%E6%97%A5%E5%B8%B8/" style="font-size: 1.1em; color: #999">日常</a> <a href="/tags/%E7%BC%96%E7%A8%8B%E6%8A%80%E5%B7%A7/" style="font-size: 1.1em; color: #999">编程技巧</a> <a href="/tags/%E8%80%83%E7%A0%94/" style="font-size: 1.42em; color: #99a6b7">考研</a> <a href="/tags/%E8%80%83%E7%A0%94%E6%95%B0%E5%AD%A6/" style="font-size: 1.26em; color: #999fa8">考研数学</a> <a href="/tags/%E8%80%83%E7%A0%94%E8%8B%B1%E8%AF%AD/" style="font-size: 1.18em; color: #999ca1">考研英语</a> <a href="/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%9F%A5%E8%AF%86/" style="font-size: 1.1em; color: #999">计算机知识</a> <a href="/tags/%E8%AF%AD%E6%B3%95/" style="font-size: 1.1em; color: #999">语法</a> <a href="/tags/%E8%B6%A3%E9%97%BB/" style="font-size: 1.1em; color: #999">趣闻</a></div></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/02/"><span class="card-archive-list-date">二月 2023</span><span class="card-archive-list-count">10</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/01/"><span class="card-archive-list-date">一月 2023</span><span class="card-archive-list-count">11</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/09/"><span class="card-archive-list-date">九月 2022</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/08/"><span class="card-archive-list-date">八月 2022</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/07/"><span class="card-archive-list-date">七月 2022</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/06/"><span class="card-archive-list-date">六月 2022</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/05/"><span class="card-archive-list-date">五月 2022</span><span class="card-archive-list-count">3</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/04/"><span class="card-archive-list-date">四月 2022</span><span class="card-archive-list-count">5</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">36</div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"></div></div><div class="webinfo-item"><div class="item-name">本站总访问量 :</div><div class="item-count" id="busuanzi_value_site_pv"></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2023-02-21T12:34:43.941Z"></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2023 By hengxingstu</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">本地搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div></div></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js"></script><script src="/js/search/local-search.js"></script><div class="js-pjax"><script>(() => { 
  const getCommentUrl = () => {
    const eleGroup = document.querySelectorAll('#recent-posts .article-title')
    let urlArray = []
    eleGroup.forEach(i=>{
      urlArray.push(i.getAttribute('href'))
    })
    return urlArray
  }

  const getCount = () => {
    const runTwikoo = () => {
      twikoo.getCommentsCount({
        envId: 'https://twikoo-hengxing.vercel.app/',
        region: '',
        urls: getCommentUrl(),
        includeReply: false
      }).then(function (res) {
        document.querySelectorAll('#recent-posts .twikoo-count').forEach((item,index) => {
          item.innerText = res[index].count
        })
      }).catch(function (err) {
        console.log(err)
      })
    }

      if (typeof twikoo === 'object') {
        runTwikoo()
      } else {
        getScript('https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js').then(runTwikoo)
      }
  }

  window.pjax ? getCount() : window.addEventListener('load', getCount)

})()</script><script>function subtitleType () {
  if (true) { 
    window.typed = new Typed("#subtitle", {
      strings: ["只要有了安排，等待便不是煎熬，而是期待。"],
      startDelay: 300,
      typeSpeed: 150,
      loop: true,
      backSpeed: 50
    })
  } else {
    document.getElementById("subtitle").innerHTML = '只要有了安排，等待便不是煎熬，而是期待。'
  }
}

if (true) {
  if (typeof Typed === 'function') {
    subtitleType()
  } else {
    getScript('https://cdn.jsdelivr.net/npm/typed.js/lib/typed.min.js').then(subtitleType)
  }
} else {
  subtitleType()
}</script></div><script defer="defer" id="fluttering_ribbon" mobile="false" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-fluttering-ribbon.min.js"></script><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = false;
POWERMODE.mobile = true;
document.body.addEventListener('input', POWERMODE);
</script><script id="click-heart" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/click-heart.min.js" async="async" mobile="true"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"scale":1,"hHeadPos":0.5,"vHeadPos":0.618,"jsonPath":"/live2dw/assets/haru02.model.json"},"display":{"superSample":2,"width":200,"height":400,"position":"right","hOffset":10,"vOffset":0},"mobile":{"show":false,"scale":0.5},"react":{"opacityDefault":0.7,"opacityOnHover":0.2},"dialog":{"enable":true,"hitokoto":true},"log":false});</script></body></html>